package com.javaweb.dao;

import com.javaweb.model.Article;

import java.util.Date;
import java.util.List;

public interface ArticleDao {
    int insert(Article article);
    int updateContent(Integer id, String newContent);
    int updateTitle(Integer id, String newTitle);
    int deleteById(Integer id);
    List<Article> selectByUserId(Integer userId);
    List<Article> selectByKeyword(String keyword);
    List<Article> selectByTimePeriod(Date startTime, Date endTime);
    List<Article> selectByTag(Integer tagId);
    List<Article> selectByCategory(Integer categoryId);
}
